package conson.tech.manage.coupons.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * InterfaceName: CouponMessagePageVo
 * Description: 优惠券消息展示Vo
 * Author: XYF
 * Date: 2020/7/24 11:38
 * Version: 1.0
 */
@ApiModel(value = "conson.tech.manage.coupons.entity.vo.CouponMessagePageVo", description = "优惠券消息展示Vo")
@Data
public class CouponMessagePageVo {

    /**
     * 批次id
     */
    @ApiModelProperty(value = "批次id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long batchId;
    /**
     * 优惠券批次名称
     */
    @ApiModelProperty(value = "优惠券批次名称")
    private String batchName;
    /**
     * 活动id
     */
    @ApiModelProperty(value = "活动id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long activityId;
    /**
     * 活动名称
     */
    @ApiModelProperty(value = "活动名称")
    private String activityName;
    /**
     * 消息类型（1到账提醒 2到期提醒,3到期和到账 4 无）
     */
    @ApiModelProperty(value = "消息类型（1到账提醒 2到期提醒）")
    private Integer messageType;
    /**
     * 发送内容
     */
    @ApiModelProperty(value = "发送内容")
    private String pushContent;
    /**
     * 发放时间
     */
    @ApiModelProperty(value = "发放时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime grantTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String applyName;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 消息标识( 1 活动来源 2优惠券来源)
     */
    @ApiModelProperty(value = "消息标识( 1 活动来源 2优惠券来源)")
    private Integer flag;
}
